//
//  StatusNormalCell.swift
//  glzbowei
//
//  Created by 高伦展 on 2018/2/9.
//  Copyright © 2018年 glz. All rights reserved.
//

import UIKit

class StatusNormalCell: StatusCell {

    //微博视图模型
   override var viewModel:StatusViewModel?{
        didSet{
            picView.snp.updateConstraints { (make) in 
                let offset = (viewModel?.thumbnailUrls?.count ?? 0) > 0 ? StatusCellMargin:0
                make.top.equalTo(contentLabel.snp.bottom).offset(offset)
            }
        }
    }
    
    override func setupUI() {
        super.setupUI()
        picView.snp.makeConstraints { (make) in
            make.top.equalTo(contentLabel.snp.bottom).offset(StatusCellMargin)
            make.left.equalTo(contentLabel.snp.left)
            make.width.equalTo(300)
            make.height.equalTo(90)
        }
    }

}
